Package com.cisco.pt.ipc.system.impl
Class SimulationImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCObjectImpl
com.cisco.pt.ipc.system.impl.SimulationImpl
- All Implemented Interfaces:
IPCObject,Simulation
Information provided by the PKI file:
\class Simulation
\brief Simulation holds the traffic details like PDUs, ports, etc.
\example simulation()
- Author:
- Auto-generated
-
Field Summary
Fields inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
accessMessage, ipcFactory, packetTracerSession -
Constructor Summary
ConstructorsConstructorDescriptionSimulationImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage) -
Method Summary
Modifier and TypeMethodDescriptionvoidbackward()Information provided by the PKI file:createTimer(int delay, boolean bAddRandom) Information provided by the PKI file:createTimerUuid(int delay, boolean bAddRandom) Information provided by the PKI file:voidforward()Information provided by the PKI file:intInformation provided by the PKI file:longInformation provided by the PKI file:getFrameInstanceAt(int nodeIndex) Information provided by the PKI file:intInformation provided by the PKI file:getIpcTimer(UUID uuid) Information provided by the PKI file:booleanInformation provided by the PKI file:voidInformation provided by the PKI file:voidsetSimulationMode(boolean toSimMode) Information provided by the PKI file:Methods inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession, sendMessage, sendMessageWithReturn, translateToCommandStatusStringPairMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.IPCObject
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession
-
Constructor Details
-
SimulationImpl
public SimulationImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage)
-
-
Method Details
-
getFrameInstanceCount
public int getFrameInstanceCount()Information provided by the PKI file:
\brief Returns the number of FrameInstances at present in the simulation. \return int, the number of FrameInstances at present in the simulation.- Specified by:
getFrameInstanceCountin interfaceSimulation- Returns:
- int Returns a int
-
getFrameInstanceAt
Information provided by the PKI file:
\brief Returns the FrameInstance at the specified index in the simulation event list. \param nodeIndex, the index of FrameInstance of interest. \return FrameInstance, the FrameInstance object at the specified index in the simulation event list.- Specified by:
getFrameInstanceAtin interfaceSimulation- Parameters:
nodeIndex- Takes in a parameter of nodeIndex- Returns:
- FrameInstance Returns a FrameInstance
-
getCurrentFrameInstanceIndex
public int getCurrentFrameInstanceIndex()Information provided by the PKI file:
\brief Returns index of "current" frame instance.- Specified by:
getCurrentFrameInstanceIndexin interfaceSimulation- Returns:
- int Returns a int
-
resetSimulation
public void resetSimulation()Information provided by the PKI file:
\brief Resets simulation and fires the event.- Specified by:
resetSimulationin interfaceSimulation
-
isSimulationMode
public boolean isSimulationMode()Information provided by the PKI file:
\brief Returns true if in Simulation Mode, otherwise false. \return bool, true if in Simulation Mode, otherwise false.- Specified by:
isSimulationModein interfaceSimulation- Returns:
- boolean Returns a boolean
-
createTimer
Information provided by the PKI file:
\brief Create Simulation Timer \param delay, delay time before timer expires \param bAddRandom, true to set the timer to expire at random time and false to not including the random factor \return SimulationTimer, SimulationTimer object- Specified by:
createTimerin interfaceSimulation- Parameters:
delay- Takes in a parameter of delaybAddRandom- Takes in a parameter of bAddRandom- Returns:
- SimulationTimer Returns a SimulationTimer
-
createTimerUuid
Information provided by the PKI file:
\brief Create Simulation Timer and return the uuid of the timer object \param delay, delay time before timer expires \param bAddRandom, true to set the timer to expire at random time and false to not including the random factor \return uuid, SimulationTimer object's uuid- Specified by:
createTimerUuidin interfaceSimulation- Parameters:
delay- Takes in a parameter of delaybAddRandom- Takes in a parameter of bAddRandom- Returns:
- UUID Returns a UUID
-
getIpcTimer
Information provided by the PKI file:
\brief Get Simulation Timer based on uuid \param uuid, uuid of the timer \return SimulationTimer, SimulationTimer object- Specified by:
getIpcTimerin interfaceSimulation- Parameters:
uuid- Takes in a parameter of uuid- Returns:
- SimulationTimer Returns a SimulationTimer
-
getCurrentSimTime
public long getCurrentSimTime()Information provided by the PKI file:
\brief Get Current Simulation Time \return long, Current Simulation Time- Specified by:
getCurrentSimTimein interfaceSimulation- Returns:
- long Returns a long
-
setSimulationMode
public void setSimulationMode(boolean toSimMode) Information provided by the PKI file:
\brief Sets the mode to simulation mode \arg toSimMode, whether to change to simulation mode or not (realtime).- Specified by:
setSimulationModein interfaceSimulation- Parameters:
toSimMode- Takes in a parameter of toSimMode
-
forward
public void forward()Information provided by the PKI file:
\brief Forwards the simulation by 1 step- Specified by:
forwardin interfaceSimulation
-
backward
public void backward()Information provided by the PKI file:
\brief Backs the simulation by 1 step- Specified by:
backwardin interfaceSimulation
-